package kingwing.dc.core.view.frame.main.register.menu;

import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Component;

import com.bstek.bdf2.core.model.Url;

@Component
public class PbcCoreMenuGenerator extends AbstractMenuGenerator {

	@Override
	public List<Url> getUrls(String rootId) {
		
		List<Url> urls = new ArrayList<Url>();
		
		Url secondUrl = this.createUrl("系统默认基本信息维护","url(skin>common/icons.gif) -100px -20px", rootId, 1, null);
		urls.add(secondUrl);
		Url childUrl = this.createUrl("菜单维护","url(skin>common/icons.gif) -62px -141px", secondUrl.getId(),1, "bdf2.core.view.url.UrlMaintain.d");
		urls.add(childUrl);
		childUrl = this.createUrl("用户维护","url(skin>common/icons.gif) -142px -101px", secondUrl.getId(),	2, "bdf2.core.view.user.UserMaintain.d");
		urls.add(childUrl);
		childUrl = this.createUrl("部门维护","url(skin>common/icons.gif) -42px -41px", secondUrl.getId(), 4,	"bdf2.core.view.dept.DeptMaintain.d");
		urls.add(childUrl);
		childUrl = this.createUrl("岗位维护","url(skin>common/icons.gif) -262px -41px", secondUrl.getId(),5, "bdf2.core.view.position.PositionMaintain.d");
		urls.add(childUrl);
		childUrl = this.createUrl("消息模版维护","url(skin>common/icons.gif) -302px -61px", secondUrl.getId(),6, "bdf2.core.view.messagetemplate.MessageTemplateMaintain.d");
		urls.add(childUrl);
		
		
		secondUrl = this.createUrl("权限管理","url(skin>common/icons.gif) -42px -41px", rootId, 2, null);
		urls.add(secondUrl);
		childUrl = this.createUrl("角色维护","url(skin>common/icons.gif) -240px -80px", secondUrl.getId(),1, "bdf2.core.view.role.RoleMaintain.d");
		urls.add(childUrl);
		childUrl = this.createUrl("URL权限维护",	"url(skin>common/icons.gif) -262px -100px", secondUrl.getId(),	2, "bdf2.core.view.role.url.RoleUrlMaintain.d");
		urls.add(childUrl);
		childUrl = this.createUrl("组件权限维护","url(skin>common/icons.gif) -181px -41px", secondUrl.getId(),3, "bdf2.core.view.role.component.RoleComponentMaintain.d");
		urls.add(childUrl);
		childUrl = this.createUrl("角色成员维护","url(skin>common/icons.gif) -102px -21px", secondUrl.getId(),4, "bdf2.core.view.role.member.RoleMemberMaintain.d");
		urls.add(childUrl);
		childUrl = this.createUrl("群组维护","url(skin>common/icons.gif) -101px -121px", secondUrl.getId(),5, "bdf2.core.view.group.GroupMaintain.d");
		urls.add(childUrl);
		
		
		secondUrl = this.createUrl("Excel导入", "dorado/res/com/bstek/bdf2/importexcel/view/icons/page_excel.png", rootId, 4, null);
		urls.add(secondUrl);
		childUrl = this.createUrl("导入模板定义", "url(skin>common/icons.gif) -102px -21px", secondUrl.getId(), 1, "bdf2.importexcel.view.ExcelMaintain.d");
		urls.add(childUrl);
		childUrl = this.createUrl("导入演示", "dorado/res/com/bstek/bdf2/importexcel/view/icons/page_excel.png", secondUrl.getId(), 2, "bdf2.importexcel.view.ImportExcel.d");
		urls.add(childUrl);
		
		secondUrl = this.createUrl("用户站点管理", "url(>skin>common/icons.gif) -260px -40px", rootId, 6, "kingwing.dc.core.view.usersite.UserSiteManage.d");
		urls.add(secondUrl);
		
		secondUrl = this.createUrl("站点搜索", "url(>skin>common/icons.gif) -80px -20px", rootId, 5, "kingwing.dc.core.view.search.SearchKeyWord.d");
		urls.add(secondUrl);
		
		secondUrl = this.createUrl("站点设置", "url(>skin>common/icons.gif) -260px -60px", rootId, 6, null);
		urls.add(secondUrl);
		childUrl = this.createUrl("站点规则设置", "url(>skin>common/icons.gif) -60px -20px", secondUrl.getId(), 1, "kingwing.dc.core.view.rule.Rule.d");
		urls.add(childUrl);
		/*childUrl = this.createUrl("站点关键词采集", "url(>skin>common/icons.gif) -80px -20px", secondUrl.getId(), 2, "kingwing.dc.core.view.keyword.SiteKeyWord.d");
		urls.add(childUrl);*/
		childUrl = this.createUrl("定时任务设置", "url(>skin>common/icons.gif) -140px -40px", secondUrl.getId(), 3, "kingwing.dc.core.sevice.quartz.view.TimedTask.d");
		urls.add(childUrl);
		
		
		return urls;
	}

}
